.file-list-context-menu {
  min-width: 200px;
  background-color: #ffffff;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  user-select: none;
}

.context-menu.ant-menu {
  background: transparent;
  border: none;
  padding: 4px 0;
}

.context-menu.ant-menu .ant-menu-item,
.context-menu.ant-menu .ant-menu-submenu-title {
  height: 32px;
  line-height: 32px;
  margin: 0;
  padding: 0 16px;
  color: rgba(0, 0, 0, 0.88) !important;
  font-size: 13px;
  border-radius: 4px;
  margin: 2px 4px;
}

.context-menu.ant-menu .ant-menu-item:hover,
.context-menu.ant-menu .ant-menu-submenu-title:hover {
  background: #f5f5f5;
  color: rgba(0, 0, 0, 0.88) !important;
}

.context-menu.ant-menu .ant-menu-item .ant-menu-title-content,
.context-menu.ant-menu .ant-menu-submenu-title .ant-menu-title-content {
  color: rgba(0, 0, 0, 0.88) !important;
}

.context-menu.ant-menu .ant-menu-item.ant-menu-item-danger {
  color: #ff4d4f;
}

.context-menu.ant-menu .ant-menu-submenu-arrow {
  color: rgba(0, 0, 0, 0.45) !important;
}

.context-menu.ant-menu .ant-menu-item .anticon,
.context-menu.ant-menu .ant-menu-submenu-title .anticon {
  color: rgba(0, 0, 0, 0.65) !important;
}

.context-menu.ant-menu .ant-menu-submenu > .ant-menu {
  background-color: #ffffff;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  margin-top: -4px;
  box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08);
}

.context-menu.ant-menu .ant-menu-item-disabled {
  color: rgba(0, 0, 0, 0.25) !important;
  cursor: not-allowed;
  opacity: 0.5;
  background-color: rgba(0, 0, 0, 0.02) !important;
}

.context-menu.ant-menu .ant-menu-item-disabled:hover {
  background: rgba(0, 0, 0, 0.02) !important;
  color: rgba(0, 0, 0, 0.25) !important;
}

.context-menu.ant-menu .ant-menu-item-disabled .ant-menu-title-content {
  color: rgba(0, 0, 0, 0.25) !important;
}

.context-menu.ant-menu .ant-menu-item-disabled .anticon {
  color: rgba(0, 0, 0, 0.25) !important;
}

/* 禁用的子菜单样式 */
.context-menu.ant-menu .ant-menu-submenu-disabled {
  color: rgba(0, 0, 0, 0.25) !important;
  cursor: not-allowed;
  opacity: 0.5;
}

.context-menu.ant-menu .ant-menu-submenu-disabled:hover {
  background: none !important;
  color: rgba(0, 0, 0, 0.25) !important;
}

.context-menu.ant-menu .ant-menu-submenu-disabled .ant-menu-title-content {
  color: rgba(0, 0, 0, 0.25) !important;
}

.context-menu.ant-menu .ant-menu-submenu-disabled .ant-menu-submenu-arrow {
  color: rgba(0, 0, 0, 0.25) !important;
}

.context-menu.ant-menu .ant-menu-item-divider {
  background-color: #f0f0f0;
  margin: 4px 0;
}

/* 图标样式 */
.context-menu.ant-menu .anticon {
  margin-right: 8px;
  font-size: 14px;
}

.file-list-context-menu .menu-item {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  color: rgba(0, 0, 0, 0.88) !important;
  cursor: pointer;
  font-size: 12px;
  border-radius: 4px;
  margin: 2px 4px;
}

.file-list-context-menu .menu-item:hover {
  background-color: #f5f5f5;
  color: rgba(0, 0, 0, 0.88) !important;
}

.file-list-context-menu .menu-item.has-submenu {
  padding-right: 24px;
}

.file-list-context-menu .menu-item.has-submenu .submenu-arrow {
  position: absolute;
  right: 8px;
  font-size: 10px;
  color: #666;
}

.file-list-context-menu .menu-item .menu-item-text {
  margin-right: 16px;
}

.file-list-context-menu .menu-item .checkbox {
  display: flex;
  align-items: center;
  gap: 4px;
}

.file-list-context-menu .menu-item .checkbox input[type="checkbox"] {
  margin: 0;
  cursor: pointer;
}

.file-list-context-menu .menu-item .checkbox .checkbox-label {
  font-size: 11px;
  color: #666;
}

.file-list-context-menu .submenu {
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 160px;
  background-color: #1E1E1E;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 4px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.file-list-context-menu .ant-menu {
  background: transparent;
  border: none;
}

.file-list-context-menu .ant-menu .ant-menu-item {
  color: #D4D4D4;
}

.file-list-context-menu .ant-menu .ant-menu-item:hover {
  background: #2D2D2D;
}

.file-list-context-menu .ant-menu .ant-menu-item.menu-item-checkbox {
  position: relative;
  padding-right: 24px;
}

.file-list-context-menu .ant-menu .ant-menu-item.menu-item-checkbox.checked::after {
  content: '✓';
  position: absolute;
  right: 8px;
  color: #1890ff;
} 